import JSEncrypt from '../components/jsencrypt';
let publicKey = 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCNpT2nZTArTuEW3kR8psxJ86sCz2cP6oxYWR9BwnL6kE2JLBplbEeMDL5FSQBJxdALNTfFAtIRKVsvV98aH+ns9HuSeATXt2Dtz+VibPsYNWUCsPhiluppcm+5ZJFVf5sPWSDv7RmKMRpl5WEtb7p5uytlptEY5fArrenYsXtSwwIDAQAB';
function RSAencrypt(pas){
	//实例化jsEncrypt对象
	let jse = new JSEncrypt();
	//设置公钥
	jse.setPublicKey(publicKey);
	return jse.encrypt(pas);
}

export {RSAencrypt}